<div class="my-account form-container">
	<div class="col-left sidebar">
		<div class="block block-account">
			<div class="block-title">
				<strong>
					<span><?=lang('my_account')?></span>
				</strong>
			</div>
			<div class="block-content">
				<ul>
					<li >
						<a href="<?=site_url('user/dashboard')?>">
						<?=lang('my_dashbord')?>
						</a>	
					</li>
					<li>
						<a href="<?=site_url('user/my_account/')?>">
							<?=lang('account_info')?>
						</a>
					</li>
					<li>
						<a href="<?=site_url('user/my_address/')?>">
							<?=lang('my_address')?>
						</a>
					</li>
					<li class="current">
						<strong>
						<?=lang('address_book')?>
						</strong>	
					</li>
					<li>
						<a href="<?=site_url('user/my_orders/')?>">
							<?=lang('my_orders')?>
						</a>
					</li>
					<li >
						<a href="<?=site_url('user/newsLetter')?>">
						<?=lang('newsletter')?>
						</a>	
					</li>
					<li class="last">
						<a href="<?=site_url('user/logout/')?>">
							<?=lang('logout')?>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="col-main">
		
		<h1 style = "margin:10px;width:500px;float:left"><?=lang('address_book')?> </h1> <div id="btn-add-new" class="button right" style="margin-top:15px"> <a href="<?=site_url('user/add_new_address')?>"><?=lang('add_new_address')?></a> </div>
		<div class="clear"></div>
		<div style="width:390px" class=" lpadding10 left">
			<div class="block block-account" style="border: 0">
				<div class="block-title">
				<?=lang('default_addresses')?> <div class="right"></div>
				</div>
				<br>
				<br>
				<?php if (!empty($address_billing_default)){?>
					<strong><?=lang("default_billing_address") ?></strong><br/>
					<?=$address_billing_default->first_name ." " .$address_billing_default->last_name?><br/>
					<?=$address_billing_default->address .", " .$address_billing_default->city?><br/>
					<?=$address_billing_default->state_provide .", " .$address_billing_default->country_name?><br/>
					<?=$address_billing_default->postcode ?><br/>
					T:<?=$address_billing_default->postcode .", " .$address_billing_default->tel_number?><br/>
					<a href="<?=site_url('user/add_new_address/'.$address_billing_default->id)?>"><?=lang('change_billing_address')?></a>
					<br>
					<br>
				<?php }?>
				
				<?php if (!empty($address_shipping_default)){?>
					<strong><?=lang("default_shipping_address") ?></strong><br/>
					<?=$address_shipping_default->first_name ." " .$address_shipping_default->last_name?><br/>
					<?=$address_shipping_default->address .", " .$address_shipping_default->city?><br/>
					<?=$address_shipping_default->state_provide .", " .$address_shipping_default->country_name?><br/>
					<?=$address_shipping_default->postcode ?><br/>
					T:<?=$address_shipping_default->postcode .", " .$address_shipping_default->tel_number?><br/>
					<a href="<?=site_url('user/add_new_address/'.$address_shipping_default->id)?>"><?=lang('change_shipping_address')?></a>
				<?php }?>
			</div>
			
			
		</div>
		<div style="width:390px" class="lpadding10 left">
			<div class="block block-account" style="border: 0">
				<div class="block-title">
				<?=lang('additional_address_entries')?> <div class="right"></div>
				</div>
				<br/><br/>
				<?php foreach ($address_other as $oher){?>
					<?=$oher->first_name ." " .$oher->last_name?><br/>
					<?=$oher->address .", " .$oher->city?><br/>
					<?=$oher->state_provide .", " .$oher->country_name?><br/>
					<?=$oher->postcode ?><br/>
					T:<?=$oher->postcode .", " .$oher->tel_number?><br/>
					<a href="<?=site_url('user/add_new_address/'.$oher->id)?>"><?=lang('change_shipping_address')?></a>  | <a href="<?=site_url('user/delete_address/'.$oher->id)?>"><?=lang('delete_address')?></a><br/><br/>				<?php }?>
			</div>	
			
		</div>
		<div class="clear"></div>
		
	</div>
	<div class="clear"></div>
</div>
